<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表白墙</title>
</head>

    <style>
        * {
            margin: 0;
            padding: 0px;
        }
        #container {
            align-items: center;
            width: 600px;
            margin: 0 auto;
            text-align: center;
        }

        .input {
            width: 300px;
            height: 38px;
            outline-style: none;
            border-radius: 8px;
            border-color: darkslategray;
        }

        #submit {
            background-color: coral;
            width: 380px;
            height: 50px;
            border-radius: 10px;
            color: aliceblue;
            font-size: 20px;
            /* text-align: center;  不需要，因为是自动居中的  */
            border: none;
            margin-top: 20px;
            /* text-align: center; */
        }

        table {
            margin: 0 auto;
        }

        table tr td {
            font-size: large;
            font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        }
        p {
            text-align: center;
            margin: 0 auto;
            color: #666;
            font-size: 14px;
            padding: 10px 0;
        }
        h1 {
            text-align: center;
            align-content: center;
            margin: 0 auto;
        }

    </style>

<body>
    <div id="container">
        <h1>表白墙</h1>
        <p>输入后点击提交，会将信息显示在表格中</p>
        <table>
            <tr>
                <td>谁:</td>
                <td><input class="input" type="text"></td>
            </tr>
            <tr>
                <td>对谁:</td>
                <td><input class="input" type="text"></td>
            </tr>
            <tr>
                <td>说什么:</td>
                <td><input class="input" type="text"></td>
            </tr>

        </table>
        <input id="submit" type="button" value="提交" width="200px" onclick="alert('随便')">

    </div>

    <script>
        var submit = document.querySelector("#submit");
        console.log(submit);
    </script>

    
</body>
</html>